public class Lg
extends java.lang.Object
| Constructor and Description |
|---|
Lg() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Dimension |
calcSize(double x,
double y,
int maxX,
int maxY)
This function returns the minimum dimensions to fit inside (maxx,maxy)
while retaining the aspect ratio of the original (x,y)
|
static java.awt.Composite |
getAlphaComposite(float trans)
Creates an Alpha Composite with the given transparency
|
static javax.swing.JEditorPane |
getQuickHTMLPane(java.lang.String str) |
static int |
getSpacing(boolean horiz,
int allocated,
java.awt.Component... cs)
Returns the spacing that should be given to the components.
|
static java.awt.image.BufferedImage |
resizeImage(java.awt.image.BufferedImage originalImage,
java.awt.Dimension size) |
static java.awt.image.BufferedImage |
resizeImageWithHint(java.awt.image.BufferedImage originalImage,
java.awt.Dimension size) |
static int |
taller(java.awt.Component a,
java.awt.Component b)
Returns the height of the taller component.
|
public static java.awt.image.BufferedImage resizeImage(java.awt.image.BufferedImage originalImage,
java.awt.Dimension size)
originalImage - Image to resizesize - size to convert topublic static java.awt.image.BufferedImage resizeImageWithHint(java.awt.image.BufferedImage originalImage,
java.awt.Dimension size)
originalImage - Image to resizesize - size to convert topublic static java.awt.Dimension calcSize(double x,
double y,
int maxX,
int maxY)
x - Original widthy - Original heightmaxX - Max widthmaxY - Max heightpublic static int taller(java.awt.Component a,
java.awt.Component b)
a - b - public static java.awt.Composite getAlphaComposite(float trans)
trans - public static int getSpacing(boolean horiz,
int allocated,
java.awt.Component... cs)
horiz - Horizontal spacing vs verticalallocated - How much space the components should take upcs - the components to spacepublic static javax.swing.JEditorPane getQuickHTMLPane(java.lang.String str)